package event.stringevent;

import java.util.Vector;

class StringManager {
	
	private Vector<StringListener> listeners;
	
	public StringManager(){
		super();
		this.listeners=new Vector<StringListener>(0,1);
	}
	
	public boolean addStringListener(StringListener _sl){
		return this.listeners.add(_sl);
	}
	public boolean removeStringListener(StringListener _sl){
		return this.listeners.remove(_sl);
	}
	public void fireStringEvent(StringEvent event){
		for (int i=0;i<this.listeners.size();i++){
			this.listeners.get(i).valueChanged(event);
		}
		
	}

}
